#添加openstack相关用户
rabbitmqctl add_user {{ RABBITMQ_OPENSTACK_USER }} {{ RABBITMQ_OPENSTACK_PASS }}

#给刚才创建的openstack用户创建权限
rabbitmqctl set_permissions {{ RABBITMQ_OPENSTACK_USER }} ".*" ".*" ".*"

#启用Web监控插件
rabbitmq-plugins enable rabbitmq_management

#change default guest password
rabbitmqctl change_password guest {{ RABBITMQ_GUEST_PASS }}
